﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using AutoMapper;
using FwProject.Core.Car;
using FwProject.Core.Restaurant;
using FwProject.Users.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject.Car.Dto
{
    [AutoMap(typeof(CarInfo))]
    public class CarTrackOutputDto:EntityDto<Guid>
    {
        /// <summary>
        /// 司机
        /// </summary>
        public UserDto CarUser { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        public string PlatesNumber { get; set; }

        /// <summary>
        /// 车量坐标
        /// </summary>
        [IgnoreMap]
        public EndCarMapDto EndCarMap { get; set; }

        /// <summary>
        /// 最后装车情况
        /// </summary>
        [IgnoreMap]
        public EndLoadCarDto EndLoadCar { get; set; }

        [AutoMap(typeof(CarMap))]
        public class EndCarMapDto
        {
            /// <summary>
            /// 经度
            /// </summary>
            /// <value>The longitude.</value>
            public string longitude { get; set; }
            /// <summary>
            /// 纬度
            /// </summary>
            /// <value>The latitude.</value>
            public string latitude { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime CreationTime { get; set; }
        }
        
        public class EndLoadCarDto
        {
            public CarStatus CarStatus { get; set; }
        }

    }
}
